<?php


$listfilter = "";
$listfilter = @$_GET['listfilter'];
$WhereFilter = "";
$listfilter_htmlcode = "listfilter=$listfilter&";


$link = "index.php?view=Fmly_az_list&amp;";

$WhereFilter = $PACTS_cfg->getListHeader($listfilter_htmlcode,"","index.php?view=Indv_az_list&amp;","index.php?view=Indv_allentries&amp;","Individuals",$listfilter,&$WhereFilter);

$link = "index.php?view=Indv_allentries&amp;";

//echo FilterList($listfilter,$link,&$WhereFilter);
$WhereFilter = "TRUE ".$WhereFilter;

$result = mysql_query("SELECT * FROM $PACTS_cfg->individualtablename WHERE $WhereFilter ORDER BY Surname",$PACTS_cfg->dblink);
echo "<table cellpadding=2 cellspacing=1 border=0>"; 
$resultsnumber = mysql_num_rows($result);
echo "&nbsp;<b>Number of entries: $resultsnumber</b><br />";

$alternate = "2"; 
while ($row = mysql_fetch_array($result)) { 

	$IndividualId = $row["IndividualId"]; 
	$FamilyId = $row["FamilyId"];
	$firstname = $row["FirstName"];
	$lastname = $row["Surname"];

	$role = $row["RoleTypeCode"];
	
	echo $PACTS_cfg->getIndvNavBar($IndividualId, $FamilyId, TRUE, TRUE, TRUE, "Fmly_view","",TRUE,"$lastname, $firstname <i>($role)</i>");
	echo"</tr>"; 

} 
echo "</table>";
$PACTS_cfg->end_div_main();

?> 